// 混淆 -- 多行字省略 (line 省略行数 | bg 背景色)
@mixin textOverflowMulti($line: 3, $bg: #fff) {
  position: relative;
  max-height: $line * 1.5em;
  margin-right: -1em;
  padding-right: 1em;
  overflow: hidden;
  line-height: 1.5em;
  text-align: justify;
  &::before {
    position: absolute;
    right: 14px;
    bottom: 0;
    padding: 0 1px;
    background: $bg;
    content: '...';
  }
  &::after {
    position: absolute;
    right: 14px;
    width: 1em;
    height: 1em;
    margin-top: 0.2em;
    background: white;
    content: '';
  }
}

// 使用
.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.textOverflowMulti {
  width: 300px;
  height: 60px;
  color: #333;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5rem;
  @include textOverflowMulti(3);

  &.only {
    @include textOverflowMulti(1);
  }

  &.blue {
    color: #fff;
    background-color: blue;
    @include textOverflowMulti(3, blue);
  }
}